Skip to content

add prompt templates to MCP server for guided security workflows#296

Merged
msoedov merged 1 commit into
msoedov:mainfrom
ykd007:feat/mcp-prompts-192
Jun 3, 2026
Merged

add prompt templates to MCP server for guided security workflows#296
msoedov merged 1 commit into
msoedov:mainfrom
ykd007:feat/mcp-prompts-192

Conversation

@ykd007

@ykd007 ykd007 commented May 15, 2026

Copy link
Copy Markdown
Contributor

Closes #192

Adds three reusable prompt templates to the MCP server using the @mcp.prompt() decorator.

What's in here:

security_scan_prompt(llm_spec, max_budget) — guides the client through a full security scan: start it, watch it, stop it.

verify_llm_prompt(llm_spec) — quick reachability check so you can confirm a spec works before committing to a full scan.

adversarial_probe_prompt(llm_spec) — sets up a multi-step adversarial run with optimization on and asks the client to surface the worst findings at the end.

All three return plain strings, which is the correct return type for FastMCP prompts. They're placed in their own section above the tools so the file stays easy to navigate. No existing tool behaviour is touched.

Closes msoedov#192

Three prompt templates via @mcp.prompt():
- security_scan_prompt: full scan with configurable probe budget
- verify_llm_prompt: quick reachability check before committing to a scan
- adversarial_probe_prompt: multi-step attack session with findings summary

Placed before the tool definitions with a clear section comment.
No existing tool behaviour changed.
@msoedov msoedov merged commit 0086895 into msoedov:main Jun 3, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add mcp.prompts to agentic_security/mcp/main.py

2 participants